<{extends file="../layout/layout.phtml"}>
<{block name='content'}>
<link rel="stylesheet" href="/css/admin_ad.css">
<div id='admin-ad-add'>
	<form method='post' action='' id='ad_form' name='ad_form' enctype="multipart/form-data">
		Ad position:<select name='type_id'>
						<option>--Please choose--</option>
						<{foreach from=$adtype_list item=typelist}>
							<option value='<{$typelist._id}>'><{$typelist.name}></option>
						<{/foreach}>
					</select><br>
		Ad title:<input type='text' name='title'><br>
		Ad href:<input type='text' name='href'><br>
		Ad description:<textarea name='description'>
		</textarea><br>
		Ad Pic : <input type='file' name='pic'><br>
		Ad status: <input type='radio' name='status' checked value=1>Ok <input type='radio' name='status' value=0>No <br>
		<input type='hidden' name='addcheck' value=1 />
		<input type='submit' value='Save' id='ad_save'><span id="error_show"><{$err_msg}></span>
	</form>
</div>
<{/block}>